package com.ddone.demo.bean;

import lombok.Data;

import java.util.List;

/**
 * @author ddone
 * @date 2024/3/18-18:22
 */
@Data
public class Student {

    private Integer id;
    private String  name;
    private Integer age;
    private String sex;
    private List<Score> scores;
}

/*
drop table if exists student;
create table `student`
(
    id   int         not null auto_increment comment '学生ID',
    name varchar(20) not null comment '姓名',
    age  int     default null comment '年龄',
    sex  char(2) default null comment '学生性别',
    primary key (id)
) engine = InnoDB
  Default charset = utf8mb4;
insert into student(name, age, sex)
values ('张三', 26, '男'),
       ('李四', 28, '女');
 */